package com.atguigu.demo.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author licd
 * @date 2021-02-20 14:41
 */
@RestController
@RequestMapping("/user")
public class HelloController {

    @GetMapping
    public String get(){
        return "get";
    }
    @PostMapping
    public String post(){
        return "post";
    }
    @DeleteMapping
    public String delete(){
        return "delete";
    }
    @PutMapping
    public String put(){
        return "put";
    }
    @PatchMapping
    public String patch(){
        return "patch";
    }
}
